import { i18n } from 'boot/i18n.js'
import { computed } from 'vue'

// 移动目标类型
export const moveTargetTypes = computed(() => {
  return [{
    label: `${i18n.t('TaskCore.MoveTargetTypeTip1')}`, value: '10'
  }, {
    label: `${i18n.t('TaskCore.MoveTargetTypeTip2')}`, value: '20'
  }]
})
// 任务创建模式
export const taskCreationModes = computed(() => {
  return [{
    label: `${i18n.t('TaskCore.TaskCreationModeTip1')}`, value: '1'
  }, {
    label: `${i18n.t('TaskCore.TaskCreationModeTip2')}`, value: '0'
  }]
})
// 通知状态
export const notificationStatus = computed(() => {
  return [{
    label: `${i18n.t('Bypassed')}`, value: '0', color: 'grey-4'
  }, {
    label: `${i18n.t('Pending')}`, value: '1', color: 'amber-4'
  }, {
    label: `${i18n.t('BeingProcessed')}`, value: '2', color: 'blue-4'
  }, {
    label: `${i18n.t('Abnormal')}`, value: '3', color: 'negative'
  }, {
    label: `${i18n.t('Completed')}`, value: '4', color: 'positive'
  }]
})
// 通知对象
export const notificationObjects = computed(() => {
  return [{
    label: 'WMS', value: '10'
  }, {
    label: 'MES', value: '20'
  }, {
    label: 'PLC', value: '30'
  }, {
    label: 'ERP', value: '40'
  }, {
    label: `${i18n.t('Other')}`, value: '50'
  }]
})
// 通知目标类型
export const notificationTargetTypes = computed(() => {
  return [{
    label: `${i18n.t('RCSCore.RESTTips')}`, value: '10'
  }, {
    label: `${i18n.t('RCSCore.PlugIn')}`, value: '20'
  }]
})
// 站点位置类型
export const sitePositionTypes = computed(() => {
  return [{
    label: `${i18n.t('MapCore.StartPoint')}`, value: '0'
  }, {
    label: `${i18n.t('MapCore.EndPoint')}`, value: '1'
  }, {
    label: `${i18n.t('MapCore.Waypoint')}`, value: '2'
  }]
})
// 作用阶段
export const effectPhases = computed(() => {
  return [{
    label: `${i18n.t('Misc.EffectPhaseTip1')}`, value: '0'
  }, {
    label: `${i18n.t('Misc.EffectPhaseTip2')}`, value: '1'
  }]
})
// 统计类型
export const statisticalTypes = computed(() => {
  return [{
    label: `${i18n.t('Misc.StatisticsTypeTip1')}`, value: '1'
  }, {
    label: `${i18n.t('Misc.StatisticsTypeTip2')}`, value: '2'
  }, {
    label: `${i18n.t('Misc.StatisticsTypeTip3')}`, value: '3'
  }]
})